package main

import (
	"flag"
	"jkgo/jk/jklog"
	. "jktools/jktips/windowtips"
	"os"
)

var (
	stype   = flag.String("t", "nstring", "tips type")
	content = flag.String("c", "", "content to display")
)

func main() {
	flag.Parse()

	jklog.L().SetLevel(jklog.LEVEL_ALL)

	jklog.L().Debugln("show with stype =", *stype, ", content = ", *content)

	wt, e := NewWindowTips(*stype, *content, &os.Args)
	if e != nil {
		jklog.L().Errorln(e)
		return
	}

	jklog.L().Infoln("show start")
	wt.ShowFull()

	jklog.L().Infoln("program exit")
}
